﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Public;
using DAL;
using System.Data;

namespace BUS
{
    public class DonViTinh_BUS
    {
        DonViTinh_DAL dvt_dal = new DonViTinh_DAL();
        public DataTable LayDSDVT()
        {
            return dvt_dal.LayDSDVT();
        }
        public int ThemSuaDVT(DonViTinh_PB dvt_pb)
        {
            return dvt_dal.ThemSuaDonViTinh(dvt_pb);
        }
        public int SuaDVT(DonViTinh_PB dvt_pb)
        {
            return dvt_dal.SuaDonViTinh(dvt_pb);
        }
        public int XoaDonViTinh(string madonvitinh)
        {
            //return dvt_dal.XoaDonViTinh(dvt_pb);
            return dvt_dal.XoaDonViTinh(madonvitinh);
        }
        public bool Exists(string ma)
        {
            return dvt_dal.Exists(ma);
        }
    }
}
